Passed
Pull Request — master (#75)
by Mathieu
01:46
created

DoesEventBelongToUser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 4
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A isSatisfiedBy 0 2 1
1
import {Event} from '../Event.entity';
2
import {User} from 'src/Domain/User/User.entity';
3
4
export class DoesEventBelongToUser {
5
  public isSatisfiedBy(event: Event, user: User): boolean {
6
    return event.getUser().getId() === user.getId();
7
  }
8
}
9